//
//  ZSHUDManager.h
//  ZSHUDManager
//
//  Created by 字节科技 on 2018/12/20.
//  Copyright © 2018 Byte. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
typedef enum : NSUInteger {
    HUDViewStateSuccess,
    HUDViewStateFail,
} HUDViewState;

@interface ZSUploadingView : UIView
/**进度*/
@property(nonatomic,strong)NSProgress *progress;
@property(nonatomic,strong)UILabel *titleL;
@property(nonatomic,assign)CGFloat floatProgress;
+(ZSUploadingView *)showUploading:(NSString *)message;
-(void)hideUploading;
@end

@interface ZSHUDManager : NSObject
/**
 1.5秒后自动消失信息提示

 @param message 提示信息
 */
+(void)showAutoHiddenToastWithMessage:(NSString *)message;
/**
 可定制消失时间的信息提示

 @param message 提示信息
 @param delay 显示的时间（单位:秒）
 */
+(void)showToastWithMessage:(NSString *)message delay:(NSTimeInterval)delay;
/**
 显示一条提示信息

 @param message 提示信息
 */
+(UIView *)showToastWithMessage:(NSString *)message;
+(void)showLoading:(NSString *)message;
+(void)hideLoading;


/**提示成功*/
+(void)showSuccess:(NSString *)message;
/**提示失败*/
+(void)showError:(NSString *)message;

@end

NS_ASSUME_NONNULL_END
